package com.isunland.managesystem.adapter;

import android.content.Context;
import android.graphics.Color;
import com.isunland.managesystem.R;
import com.isunland.managesystem.base.BaseListAdapter;
import com.isunland.managesystem.entity.FileReport;
import java.util.List;

/**
 * Created by Lenovo on 2017/2/28.
 */
public class FileReportListAdapter extends BaseListAdapter<FileReport> {
  public FileReportListAdapter(Context context, List<FileReport> objects) {
    super(context, objects);
  }

  @Override public void bindData(int position, ViewHolder vh, FileReport item) {
    vh.mTitleOneTv.setText(R.string.fileName);
    vh.mTitleTwoTv.setText(R.string.text);
    vh.mContentOneTv.setText(item.getFileName());
    vh.mContentOneTv.setTextColor(Color.BLUE);
    vh.mContentTwoTv.setText(item.getRemark());
  }
}
